package com.augurit.gzcgwsp.webservice;

import org.apache.commons.lang.StringUtils;

import com.augurit.gzcgwsp.webservice.service.IKingdomDataService;
import com.augurit.gzcgwsp.webservice.service.impl.KingdomDataServiceImpl;

/**
 * 给综合提供的webservice接口
 * @author 
 *
 */


public class DataWebSerivce {
	public String getHwggData(String pageNo,String pageSize){
		IKingdomDataService  service=new KingdomDataServiceImpl();
		String result=service.getHwggDatas(pageNo, pageSize);
		return result;
	}
	
	public String getRqjyxkData(String pageNo,String pageSize){
		IKingdomDataService  service=new KingdomDataServiceImpl();
		if(StringUtils.isBlank(pageNo)){
			pageNo="1";
		}
		if(StringUtils.isBlank(pageSize)){
			pageSize="10";
		}
		String result=service.getRqjyxkDatas(pageNo, pageSize);

		return result;
	}
	
	public static void main(String args[]){
		DataWebSerivce service=new DataWebSerivce();
		String result=service.getHwggData("1", "1");
		System.out.println(result);
	}
	
}
